Skip to content

Forbid matching struct variants with tuple variant patterns #19087

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from Nov 20, 2014
Merged

Forbid matching struct variants with tuple variant patterns #19087

merged 1 commit into from Nov 20, 2014

Conversation

ghost
Copy link

@ghost ghost commented Nov 18, 2014

Fixes #19086.

Whilst the code that this PR renders invalid was never meant to be valid, this is still a...

[breaking-change]

@ghost
Copy link
Author

ghost commented Nov 18, 2014

Surprised this slipped through but it's a recent regression from the typeck refactor.

@alexcrichton
Copy link
Member

Wow that was fast, ~60s turnaround time!

Let's see how long it takes bors...

@nikomatsakis
Copy link
Contributor

💃

@bors bors merged commit 1b5cbd0 into rust-lang:master Nov 20, 2014
dzamlo added a commit to dzamlo/rust-bitfield-legacy that referenced this pull request Nov 20, 2014
@ghost ghost deleted the issue-19086 branch November 24, 2014 20:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

rustc allows enum struct variants to be matched as if they were tuple variants
3 participants